package com.springcloud.sc.ucp.v5.api.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("job_ucp_schedule")
public class JobUcpSchedule extends Model<JobUcpSchedule> {
    private static final long serialVersionUID = 1L;
    @TableId(value="id", type= IdType.ID_WORKER_STR)
    private String id;
    @TableField("job_name")
    private String jobName;
    @TableField("task_id")
    private String taskId;
    @TableField("sharding_item")
    private int shardingItem;
    @TableField("execution_source")
    private String executionSource;
    @TableField("is_success")
    private int isSuccess;
    @TableField("start_time")
    private Date startTime;
    @TableField("complete_time")
    private Date completeTime;
    protected Serializable pkVal() {
        return this.id;
    }

}
